package A0428;

public class AreaAndLength {
        public static  void main(String[] args) {
            Cricle cricle=new Cricle(4.0);

            String rounded=String.format("%.2f",cricle.getPerimeter());
            String roundedarea=String.format("%.2f%n",cricle.getArea());

            System.out.println("圆的周长："+rounded);
            System.out.println("圆的面积："+roundedarea);

            System.out.println("圆的周长："+cricle.getPerimeter());
            System.out.println("圆的面积："+cricle.getArea());
        }

}
